package exceptcion;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class AutoCloseableDemo {
    public static void main(String[] args) {
        System.out.println("程序继续开始干..");
        try (
         FileOutputStream fos=new FileOutputStream("ak47.txt")
        ) {
            fos.write(1);
        } catch (IOException e) {
            e.printStackTrace();
        }


        System.out.println("程序再次结束了..");
    }
}
